<template>
  <div>
    <div class="col-12 col-lg-4 reg bg-white">
      <h6 class="d-flex justify-content-center border-bottom pb-3 pt-3">
        创建新账号
      </h6>
      <div class="d-flex flex-column align-items-center form">
        <div>
          <p class="py-2 mt-3 mb-3">若您未注册，登录将自动注册新账户</p>
        </div>
        <div class="rounded border d-flex flex-row bg-white pt-2 pb-2 mb-3">
          <div class="left">
            <input type="hidden" value="86" />
            <div class="dropdown">
              <button class="pr-1">86</button>
            </div>
          </div>
          <div class="right" style="flex: 1">
            <input type="tel" placeholder="手机号" />
          </div>
        </div>
        <div class="d-flex mt-3 mb-3">
          <div style="flex: 1">
            <input
              type="tel"
              placeholder="输入验证码"
              class="pt-2 pb-2 border rounded"
              style="padding-left: 5px"
            />
          </div>
          <div class="rounded right">
            <button class="bg-white pt-2 pb-2 rounded">发送验证码</button>
          </div>
        </div>
        <div class="my-3 w-100" style="padding: 0 50px">
          <button
            class="pt-3 pb-3 bg-dark w-100 text-white rounded"
            type="button"
          >
            一键登录/注册
          </button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
@import "../assets/reset";
.reg {
  width: 400px;
  .form {
    > div {
      width: 300px;
    }
  }
  h6 {
    font-weight: bold;
  }
  p {
    color: #999;
  }
  .left {
    border-right: 1px solid #ccc;
  }
  .dropdown {
    button {
      width: 76px;
      position: relative;
      &::after {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-2px);
        content: "";
        display: block;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-top-color: #212529;
      }
    }
  }
  .right {
    padding-left: 5px;
    button {
      font-size: 12px;
      width: 100px;
      height: 41px;
      padding: 15px 5px 10px 5px;
      border: 1px solid #000;
    }
  }
}
</style>